package com.san.InterfManage.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.san.InterfManage.domain.InterfExamineDo;
import com.san.base.dao.BaseDao;
import com.san.common.utils.Query;

@Mapper
public interface InterfExamineDao extends BaseDao{
	/**
	 * 根据条件查询申请接口列表
	 * @param interfName
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public List<InterfExamineDo> findListSource(Map<String,Object> map);
	/**
	 * 根据条件查询申请接口列表数量
	 * @param interfName
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public int findListSourceCount(Map<String,Object> map);
	/**
	 * 根据条件查询未申请接口列表
	 * @param interfName
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public List<InterfExamineDo> queryinterf(Query query);
	/**
	 * 根据条件查询未申请接口列表数量
	 * @param interfName
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public int queryinterfCount(Query query);
	/**
	 * 根据申请接口
	 * @param interfName
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public int add(InterfExamineDo interfExamineDo);
	
	
	public int  update(InterfExamineDo interfExamineDo);
	/**
	 * 查询待审核的接口申请
	 * @param query
	 * @return
	 */
	public List<InterfExamineDo> verify(Query query);
	/**
	 * 查询待审核的接口申请条数
	 * @param query
	 * @return
	 */
	public int verifyCount(Query query);
	
	/**
	 * 退订未通过的接口申请
	 * @param query
	 * @return
	 */
	public int changeStatus(InterfExamineDo interfExamineDo);
	

}
